import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const encoding: AppRouteModule = {
  path: '/encoding',
  name: 'encoding',
  component: LAYOUT,
  redirect: '/encoding/encodingWorkPlace',
  meta: {
    orderNo: 14,
    icon: 'ic:twotone-barcode',
    title: t('routes.demo.encoding.encodingManager'),
  },
  children: [
    {
      path: 'encodingWorkPlace',
      name: 'EncodingWorkPlace',
      meta: {
        title: t('routes.demo.encoding.encodingWorkPlace'),
        ignoreKeepAlive: false,
      },
      component: () => import('/@/views/demo/encoding/index.vue'),
    },
  ],
};

export default encoding;
